# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :config.py
# @Time      :2022/6/28 13:56
# @Author    :吕华龙
from settings.secret import SecretConfig


class DefaultConfig(SecretConfig):
    SECRET_KEY = "asd.askgdfgjkwe"
    SQLALCHEMY_DATABASE_URI = ""
    SQLALCHEMY_ECHO = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    JSON_AS_ASCII = False
    REDIS_HOST = ""
    REDIS_PASSWORD = ""
    REDIS_PORT = ""


class DevConfig(DefaultConfig):
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:123@127.0.0.1:3306/flask_new_day08"
    REDIS_HOST = "127.0.0.1"
    REDIS_PASSWORD = "123"
    REDIS_PORT = "6379"
